Study of tau-pair production at HERA