The US president says an agreement could see the UK avoiding the trade tariffs he has been threatening.