Manchester United gave their top-four aspirations a much-needed boost as Paul Pogba proved the difference against West Ham.