'Prisons are failing the public'