Costco is installing scanners at all of the retailer’s U.S. stores to discourage non-members from shopping at its warehouse clubs.