Lebanon elects army chief Joseph Aoun as president

War-torn country was without a head of state since Michel Aoun's term ended more than two years ago.