Bill Gates will shut down the Gates Foundation and give away nearly all of his personal wealth over the next 20 years, the billionaire announced on Thursday.