The Lebanese army has been deployed to confront growing anti-government protests in the capital Beirut.