Those convicted of serious crimes, including violent and sexual offences, and detained in hospital, would be banned from claiming state benefits under new plans