The Pittsburgh Foundation, a community foundation that funds critical needs and other causes in the region, raised nearly $45 million in donations last year and handed out 22 percent more in grant money than it did in 2015.