Speakers of some accents perceived as working class including from Liverpool, Newcastle, Bradford and London risk being stereotyped as more likely to have committed a crime, a study suggests.