Economic Frictions, Investment Flows and Trade Disputes