Yankees agree to sign Cuban lefty