Study of the underlying event in top quark pair production in p p collisions at 13 TeV