British firms have diverted $10 billion of investment to the EU due to Brexit, study claims