An atrocious West Ham performance allowed Tottenham Hotspur to win their first Premier League away game since January as the home side were flattered by a 3-2 defeat.