DoorDash Inc., the largest food-delivery app in the US, unveiled a delivery robot and a smart scale for restaurants, showcasing the company’s yearslong effort to develop hardware.