Markets end off lows as IT, realty stocks lead gains; IndusInd climbs despite SEBI order