Stocks close flat after Bernanke remarks