Samsung Electronics has unveiled its flagship Galaxy S9 smartphone with an emphasis on visual applications for social media, hoping to attract tech-savvy young consumers to weather a market slowdown.