Regulator Ofgem plans to cut £500m from the stack of customer debt - but other billpayers will cover the cost.