Housing problems causing mental illness, says charity