Long-awaited mental health bill will end use of prison cells for people experiencing severe mental illness