'CPS failures' freeing criminals