A South Korean court on Friday sentenced former president Yoon Suk Yeol to five years in prison following his failed bid to impose martial law.