Korean tech giant is losing market share to US rival Apple and Chinese players