BEIJING—China’s factories slowed their output growth in April and retail sales significantly missed expectations as officials warned of new problems affecting the recovery in the world’s second-largest economy. While China’s exporters are enjoying strong demand, global supply chain bottlenecks and rising raw materials costs have weighed on production, cooling the blistering economic recovery from last…