A Californian bill that may ban the sale of alcoholic beverages at self-service checkouts could accelerate Tesco's exit from the US, an analyst has said.