Price Rigidity and the Selection of the Exchange Rate Regime