On the acceleration and deceleration of relativistic jets in active galactic nuclei - II. Mass loading