Investors in Bank of America Corp. celebrated as the bank was among many that unveiled plans for dividends and stock buybacks following the latest round of Federal Reserve stress tests. Bank of America, which operates a large number of branches and ATMs in Massachusetts, said its board approved the repurchase of $5 billion in shares and the redemption of about $5.5 billion in preferred stock. The bank is based in Charlotte, N.C.