West Ham see off Bournemouth amid VAR controversy