Great Britain took gold in the mixed freestyle 4x200m relay at the European Aquatics Championships, setting a new championship record.