First United in Maryland buys out activist investor