China’s export growth accelerated in May, offering a vital lifeline to an economy otherwise bogged down by a persistent domestic slowdown.