China’s economy slows but data hints at rebound