A five year national programme to tackle homelessness is reaching an end - with homeless figures rising across Scotland.