New homes will be built in County Durham for people who have experienced rough sleeping and homelessness.