Petty criminals who are black are more likely to be jailed than their white counterparts and serve longer sentences for low severity crimes, according to new research.