Former London Mayor Boris Johnson has been named the new British foreign minister.