West Ham manager Sam Allardyce blamed a combination of poor refereeing and defending for his side's 3-1 defeat at Stoke City.