Barnaby Joyce elected National Party leader after defeating Michael McCormack in leadership spill