Cano homers, Yankees edge Royals 3-2 behind Hughes