Rudy Giuliani, the former New York City mayor, federal prosecutor and legal adviser to Donald Trump, has been disbarred in New York.