A longitudinal study of the cumulative effects of discretionary decisions in the criminal justice system