The branching model for percolation in random systems