Markets maintain momentum ahead of Diwali: Nifty closes above 24,700, Sensex up 480 points; Asian Paints, M&M top gainers