David Shoebridge has been elected as just the sixth leader of the federal Greens, after former head Larissa Waters resigned due to health reasons.