NSW Nationals leader John Barilaro resigns