Official: Melo joins Palmeiras