Carlsberg's CEO plans to leave the company and take on a new role as the head of the Danish transport company, AP Moller Maersk.