AC Milan have signed World Cup winning defender Cristian Zaccardo from Parma, with two players heading in the opposite direction.