Linear Mode Connectivity in Multitask and Continual Learning