Samsung unveiled the Galaxy Fold, a smartphone that fits into your pocket but unfolds into the size of a tablet, at an event in San Francisco on Wednesday.