At a ceremonial swearing in for Supreme Court Justice Brett Kavanaugh, President Trump has attacked those who accused him of assault.