On compactness of integral operators with a generalized weak singularity in weighted spaces of continuous functions with a given continuity modulus