AGREEMENT AND PLAN OF MERGER DATED AS OF AUGUST 1, 2012 BY AND BETWEEN NEW HAMPSHIRE THRIFT BANCSHARES, INC. AND THE NASHUA BANK