The $5 billion Bill Gates put into his foundation helped make foundations the largest destination of funds from the nation's biggest donors. Gifts to higher education, hospitals, medical research and donor-advised funds, which also set aside charitable money to give to nonprofits at a later date, were the other most popular options.