US department store retailer Macy's has cut its outlook for the full year and reported lower-than-expected second-quarter profits, after sales were hit by weaker consumer confidence.