The South Korean firm is giving up on mobiles after repeatedly trying to out-innovate the market.