President Ramaphosa claims riots were planned