Exchange rate dynamics in economies with portfolio rigidities