Shares of China’s food-delivery firms surged as the authorities stepped up efforts to end the intense competition in the sector that has driven down profits.