Nifty ends marginally higher, ending 8-day losing streak led by financial stocks