Jack Dorsey defended Twitter's decision to ban US President Donald Trump's account but said that the Internet might learn a lesson from Bitcoin.