Aaron Ramsey has signed a pre-contract agreement with Serie A champions Juventus.