South Korea shouldn’t take sides in China, Japan spat: president