Long Swings in Exchange Rates: a Stochastic Control Approach