The congruence subgroup problem for arithmetic groups with bounded generation