Judge, Yankees fail to agree to long-term contract