Walmart Inc. jumped on Tuesday after reporting coronavirus-related stockpiling led to a surge in quarterly sales, underscoring the company’s strong position amid widespread carnage in the U.S. retail sector.