CNN — South African President Cyril Ramaphosa has deployed the country's military to restore calm after days of violent protests and looting sparked by the imprisonment of former leader Jacob Zuma.