Energy regulator Ofgem says customers’ overpayments are being used to pay for “unsustainable business”.