A network epidemic model with preventive rewiring: comparative analysis of the initial phase