What are the consequences of pretrial detention?

What are the consequences of pretrial detention? How could the bail system be reformed to reduce
disparity?