S&P 500 posts its first weekly drop in more than a month