Global analysis of a stage-structured model with population diffusion