Nifty 50 recovers from early losses, Nifty Bank nears record high