Macy's posted its sixth consecutive quarter of comparable sales growth and raised its annual guidance for the third time this year after beating third-quarter expectations.