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