A prisoner at HMP Peterborough took his own life while waiting to be deported, a new report has revealed.