Nifty closes at record high of 15,582, Sensex ends 514 points higher; Financial and Metal stocks in the lead