Improving quantum annealing of the ferromagnetic p-spin model through pausing