Japan will go to the polls only weeks after Shigeru Ishiba won the fractious ruling party's leadership race to become prime minister.