An American bellwether, Macy's earnings confounded critics while it warned of challenges ahead and said that the E-shaped economy has emerged as affluence diverges.