Apple and Samsung smartphone rivalry unveiled in new data