Influence of velocity profile and diffusion on residence time distributions: mesoscopic modeling and application to Poiseuille flow