Theresa May has said that she will work to "build a better Britain", after she met the Queen at Buckingham Palace to accept the role of prime minister.