Labour chancellor did not rule out reforming tax on tech companies, like those owned by US President’s ‘first buddy’ Elon Musk