RES and Octopus Energy will spend £3bn ($4.1bn) building UK green hydrogen production plants powered by wind and solar, the companies said.