The role of group membership on the modulation of joint action