Risk and rehabilitation: management and treatment of substance misuse and mental health problems in the criminal justice system