Former US President Bill Clinton has being grilled under oath about his ties to convicted sex offender Jeffrey Epstein.