Macroeconomic Adjustment under Foreign Investments