United Parcel Service posted a $3 billion fourth-quarter loss though still topped forecasts on an adjusted basis as the pandemic continued to drive delivery demand.