A pensioner who says he has been wrongfully charged thousands of pounds for his energy bills has had his debts cleared.