Coralie Fargeat reimagines the historical misogynist ‘hagsploitation’ genre to powerful effect – at least until her film’s disgusting ending