Indian equity markets remained sideways for the third straight day, ending with modest gains but registering another record high