US wholesale retailer Costco has booked an increase in profit in the first quarter of the year.