Thailand's prime minister has been sacked after a leaked phone call with a senior Cambodian politician caused outrage.