The overuse of pre-trial detention: causes and consequences