Liverpool beat West Ham at London Stadium to move back into third place as striker Daniel Sturridge scores his first goal since January.