Anne Hathaway stars in an uneven take on Ottessa Moshfegh’s novel that swaps soft-centred lust for a clumsy criminal affair