Lebanon has named the former Prime Minister Saad Hariri as new premier, with 65 votes out of 128, to form a cabinet.