South Africa’s government has sought to reassure people living in Cape Town over planned deployment of the army, saying it will be temporary.