Allegri confirmed as Milan boss