Party must agree to ‘campaign energetically’ for second referendum and remain, say anti-Brexit groups