Cosmic-ray vector anisotropy and local characteristics of the interplanetary medium