Braided cofree Hopf algebras and quantum multi-brace algebras