Coexistence of localized magnetism and itinerant ferromagnetism in a Gd5Y2Pd3 single crystal