Gas and electricity supplier npower has written to millions of customers to apologise after what was described by regulator Ofgem as a "serious deterioration" in customer service levels.

The German-owned energy giant admitted that a glitch resulted in a number of bills failing to go out on time and direct debit payments not being set up properly.