Scotland is in the depths of a housing emergency and barriers to building more homes remain for the housebuilding industry.