The head of Australia's National Anti-Corruption Commission, Paul Brereton, has resigned less than three years into his term.