A deep near-infrared view of the Ophiuchus galaxy cluster