Octopus Energy has seen a sharp fall in annual profit as it spent money on bringing in millions more customers, nearly doubling its workforce and installing renewable energy sources like solar panels.