A "Ditch the Witch" campaign targeting a female premier has been labelled as misogynistic and harmful by the prime minister and other political leaders.