Sir Keir Starmer has said the UK would keep open the option of retaliatory measures after Donald Trump hit steel and aluminium imports with 25% tariffs.