Chinese president Xi Jinping attends a sombre ceremony in Nanjing marking the 80th anniversary of the wartime massacre by Japanese troops.