Yuan ends at strongest in nearly 29 months despite dollar buying by state banks