Fumio Kishida has resigned as Japan's prime minister, making room for his expected successor Shigeru Ishiba to take office.