Sensex, Nifty end at near 4-month high driven by banks, realty and FMCG stocks