Hopf bifurcation for a size structured model with resting phase