Former NSW Treasurer Matt Kean resigns from state politics