Energy bills to rise after Ofgem approves £24bn investment