Ancient viral DNA in human genome guards against infections