Buffering monetary and exchange rate shocks: are capital controls effective?