Sensex, Nifty retreat from record highs; IT stocks dip : vim