Uncertainty, trade integration and the optimal level of protection in a Ricardian model with a continuum of goods