Housing construction output has slowed down due to lower house price growth and skills shortages, the Office for National Statistics (ONS) has said.