Restaurants, retailers race to supplement scarce human labor with robotics, automation and digital platforms