Shaking the hand gives acceleration to he hand and to remain the water particles attached to hand require a resultant force in the direction of acceleration. The force of the adhesion between the water particles and the hand is not sufficient to transfer the force applied by hand to the particle. So due to inertial force water is removed.