Confinement in nonlocal interaction equations