US secretary of state tells lawmakers he warned Russia about election meddling