Lebanon has elected US-backed Joseph Aoun as president, and a new cabinet without a direct role for Hezbollah has taken power.