New analysis shows energy companies have made more than £500m over the past five years, partly fuelled by soaring wholesale prices that have cost households a packet