Nifty 50, Sensex scale record highs amid strong FPI inflows