China’s vast manufacturing sector contracted for the fourth-straight month in June, but the pace of the slowdown cooled.