Lebanon's parliament has voted to postpone elections due in June because of security concerns over the conflict in Syria, officials say.