Scaling theory for the pair-connectedness in percolation models