Energy prices will rise in April as Ofgem raises its price cap for the third time in a row.