Set-theoretic solutions of the Yang-Baxter equation, braces and braided groups