Former London Mayor Boris Johnson has been appointed Foreign Secretary under the UK's new prime minister Theresa May.