S&P, Nasdaq post best weekly performance since November