US President Donald Trump has given his strong backing for Brexit, telling Theresa May that "a free and independent Britain is a blessing for the world".