British Prime Minister Theresa May has promised to build a fairer and more united country following the vote to leave the EU.