South Korea’s anti-corruption agency says impeached president Yoon Suk Yeol has been detained over his imposition of martial law last month.