Foreign countries might undermine upcoming US elections, warn intelligence officials