Thousands of Americans are jailed before trial. A new report shows the lasting impact.