A.P. Moller-Maersk has agreed a $1.71 billion deal to sell its oil tanker division to its controlling shareholder, who in turn will…