US intelligence agencies warn of attacks on politicians, polling sites as midterms approach