Sub-network Discovery and Soft-masking for Continual Learning of Mixed Tasks