Twenty-four asylum seekers who claimed to be children were actually adults, a council says.