Lebanon's parliament elects US-backed army chief as head of state after 12 failed attempts