A mentally ill man had his genitals forcefully stomped on by abusive police before being left to die in agony in jail, according to prosecutors.