A.P. Møller-Mærsk announced on Thursday that the company would split into a transport business and a separate energy division.