Lebanese MPs have decided to sleep in parliament to protest the failure of rival parties to elect a new president.