Central Banks' Demand for Foreign Reserves Under Fixed and Floating Exchange Rates