Cosmic-ray anisotropy and the local interstellar medium