Four Egyptian ministers resign amid mass protests