The South Korean company unveiled its Galaxy Z Fold 4 and the smaller, lower-priced Galaxy Z Flip 4, as pricey devices defy an industry slump.