US wholesale retailer Costco has booked a fall in half-year profits as weak economic conditions and the strengthening of the US dollar weighed on earnings.