Theresa May began her swansong on the global stage by meeting world leaders at the G20 summit in Osaka, Japan.