Ex-Australian PM channels Taylor Swift in farewell speech