Zimbabwe President Robert Mugabe has been detained by the country’s military, his ruling party Zanu-PF says.