Conditions in UK prisons have "drastically deteriorated" after the previous Tory government decided to privatise all maintenance work, according to a new report.