S&P 500 posts first weekly loss of the new year on economic slowdown worries