Mentally ill man sent to prison because there's 'nowhere else for him to go'