Manchester United confirm they have reached an agreement to sign France defender Raphael Varane from Real Madrid.