E.ON chief executive Tony Cocker has apologised on behalf of the company after an investigation found it broke energy sales rules over a three-year period.