Phylogenetic estimation of contact network parameters with approximate Bayesian computation