Lionel Messi scored a superb Champions League hat-trick as Barcelona ran Ajax ragged with a 4-0 win in their Group H opener at the Nou Camp.