President Cyril Ramaphosa testifies at corruption probe into previous South African government