AMENDED & RESTATED INVESTMENT AGREEMENT by and between HAMPTON ROADS BANKSHARES, INC. and CAPGEN CAPITAL GROUP VI LP dated as of August 11, 2010