What @DarrenOC mentioned is the way to go. But be aware that it is not route-filtering as you was asking for. The Branches still know the other subnets but the filtering prohibits them from communicating with each other.
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.