Cristiano Ronaldo has joined Italian champions Juventus in a deal worth £99.2m after nine years at Real Madrid.