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