Edward Hall's final production as artistic director of Hampstead Theatre is of Howard Brenton's wonky rewiring of Thomas Hardy's bleak final novel