Saad Hariri has withdrawn his resignation as prime minister of Lebanon after meeting with opposition leaders.