Melissa Donnelly, the national secretary of the Community and Public Sector Union, will replace the outgoing ACTU head