Treatment‐resistant depression as risk factor for substance use disorders—a nation‐wide register‐based cohort study