Lebanon elects army chief as new president