Circumnuclear regions in barred spiral galaxies – I. Near-infrared imaging