Media mogul Oprah Winfrey's monthly magazine will end its print edition at the end of 2020 after two decades.