The prime minister says he will retire in July, as police accuse him of murdering his estranged wife.