Device for the selective transmission of driving torques