I have not done this myself, but have seen pictures of it done. So maybe somebody with firsthand experience will chime in.
But the basics are, you use a dremel with a diamond tip cutting wheel, and cut the portion being fragged off at the base of the branch and then just adhere it to the rock with underwater expoxy.