Former NSW premier Gladys Berejiklian has lost her court bid to overturn damning findings made against her by the state’s corruption watchdog.