Stocks ended a choppy week of trading with modest losses Friday as investors look forward to getting more clues about the direction of interest rates. Technology shares drove the declines, and energy stocks also fell a day after leading the market. Some late-day gains in banks and insurers helped temper the market’s losses.