German Chancellor Olaf Scholz says he told Chinese President Xi Jinping in talks that he wanted Beijing to use its "influence" on Moscow to stop the war in Ukraine.