The idea that a survivor of sexual assault must behave in a certain way to be seen as credible persists in court judgments, despite criticism of such reasoning and efforts by the judiciary to address it