Foreign Secretary Yvette Cooper has hit back at President Trump's criticism of the UK response to the conflict in Iran.