US teen apparel retailer Abercrombie & Fitch has posted earnings that came in ahead of analysts expectations in the second quarter, but weak traffic held back sales.