Lionel Messi scores hat-trick as Barcelona return to winning ways against Granada