Judge's warning to drunk women 'will stop reporting of rape'