Academic Hassan Diab gets nod to form government as country grapples with mass protests against political elite, financial crisis