A first-half Saido Berahino goal gave West Brom a hugely significant 1-0 win over West Ham at The Hawthorns.