Small firms cite labour costs as a key factor in scaling back hiring, the Office for National Statistics says.