Banks propel Nifty 50 and Sensex to snap 5-day losing streak