Juventus have an agreement in principle to sign Paul Pogba on a free transfer following his departure from Manchester United.