There was a recent study by the IMF. It was in the news. The headline was that it wasn't trade, it was automation, but if you read the study, you'll see that the researchers found it's actually really difficult to disentangle the effects of automation and trade, because where investment goes is partly driven by trade flows and where the cheap labour is and all of that stuff, so it's all very integrated.
On May 16th, 2017. See this statement in context.