Ayoze Pérez scored twice to cap a comprehensive win over a woeful West Ham side that were lucky to be awarded a penalty