A controversial North Korean general and the daughter of US President Donald Trump have attended the closing ceremony of the Winter Olympics in Pyeongchang.