Duchess of Sussex’s legal battle with Mail on Sunday branded ‘tortuous’ by judge