Treasury secretary hints US is investigating national security risks of Elon Musk’s takeover of social media group