Leicester all but waved a white flag in their battle against relegation after a feeble surrender against West Ham.