The Araucaria Project: The distance to the Local Group galaxy WLM from near-infrared photometry of Cepheid variables