Optimal Choice of Exchange Rate Regimes with Labour Market Frictions