Yemeni president replaces prime minister