Cities fight homelessness with apartments instead of shelters