AT&T on Thursday reported the coronavirus pandemic had taken a heavy toll on its media business, but quarterly results were offset by stronger-than-expected gains in new phone subscribers lifted by offers for its HBO Max streaming service for free on certain phone plans.