Entanglement percolation in quantum networks