Prisoner who was wrongly released before being recaptured shows a 'catalogue of failures'