Council violations of the law that ensures the homeless including children and pregnant mothers are given some kind of roof over their heads have nearly quadrupled in the space of a year amidst Scotland's housing emergency.