West Ham sack head coach Graham Potter after eight months with the east London club struggling in 19th place in the Premier League.