Software sales show resiliency as PC market flags, but other segments of tech look weak