US department store operator Macy's has beat second quarter earnings expectations despite posting a 90% drop in second quarter profit.