Consistency versus credibility: how do countries choose their exchange rate regime?