The former US presidential candidate took a swipe at alleged Russian election interference during a Yale University's graduation ceremony.