Campaigners have warned that a lack of accommodation is putting lives at risk with more and more people forced to sleep rough.