Choi Soon-sil, friend of former South Korean leader Park Geun-hye, has been sentenced to three years in jail.