Japan and Chinese leaders agree to talks