Target struggles in the third quarter and offers tempered outlook for the holidays