SAN FRANCISCO (Reuters) - Yahoo Inc said it would cut 5 percent of its global workforce and reported quarterly results that showed progress toward controlling costs, sending shares higher in an after-hours relief rally.