A senior prosecuting lawyer has hit out at prejudices surrounding sexual violence that may be causing juries to acquit a growing number of suspects in rape trials.