Generation Investment Management has agreed to pay up to $600 million for a 13% stake in Octopus Energy, in a deal that values the renewable energy provider at about $4.6 billion.