President Cyril Ramaphosa said that the ban was necessary as the country dealt with the spread of COVID-19.