Official: Milan sign Legrottaglie