North Korea has admitted kidnapping Japanese civilians in the 1970s and 1980s to train its spies.