Bank of America posts earnings beat, excluding tax charge