Mentally-impaired men imprisoned without conviction