While overall prisoner numbers are falling, the number of people being held awaiting trial has skyrocketed.