Tech Mahindra, Wipro, Apollo Hospitals, Axis Bank, HDFC Bank stocks gain, while Trent, BEL, M&M, UltraTech Cement and IndusInd shares decline