Iranian authorities have detained a young woman who was seen walking around a university in Tehran in her underwear, according to video shared on social media and state news agencies, in what activists say was a protest against enforcement of the country’s strict dress code.