Messi scores hat-trick, Barca win