Official: Rami joins Milan