Sensex hits a record high