The grandson of former US president John F Kennedy has criticised Donald Trump for ordering the release of thousands of classified files on his grandfather's assassination.