International Financial Flows and Misallocation