China's inflation jumped to 2.5% in May, driven by higher food prices, according to the latest government data.