Cash used to be king, but most diners now pay their bill with a credit or debit card, and restaurateurs told lawmakers Monday that the habit is squeezing their already-thin profit margins.