Afghanistan’s Taliban rulers say dozens of women were detained and “advised in front of their family members” over alleged dress code violations.