Japan replaces foreign, defence ministers in major reshuffle