Britain's exit from the European Union "may create some difficult times ahead," UK Prime Minister Theresa May told the BBC ahead of a summit with world leaders in China.