Divergences of the irreducible vertex functions in correlated metallic systems: Insights from the Anderson impurity model