External Imbalances, Financial integration and Exchange Rate Regimes