Stocks ended Thursday slightly lower after weak economic data weighed on investors’ outlook