Nifty closes below 23,200 as pharma, banks outperform in volatile trade