Homeless to be housed in churches