China guides yuan higher, stocks tumble