INVESTMENT AGREEMENT dated as of July 22, 2008 between Boston Private Financial Holdings, Inc. and BP Holdco, L.P.