For younger workers, an episode of depression is linked to 24% lower earnings more than a decade later.