A Risk Allocation Approach to Optimal Exchange Rate Policy