The number of operating foundations continues to fall amid tighter government scrutiny, though large-scale gifts to elite colleges buck the downward trend