Energetic particle acceleration in spherically symmetric accretion flows: Importance of a momentum dependent diffusion coefficient