Edinburgh and Glasgow, have declared housing emergencies as they don’t have enough affordable ­accommodation to meet demand.