Effect of hydrogen on the ideal shear strength in metals and its implications on plasticity: A first-principles study