Mobile devices have been a boon to shoppers looking to get the best deals they can, but a practice called “showrooming” — in which consumers check out items at brick-and-mortar stores before buying them for less online — is becoming a real headache for some retailers.