COHERENT ELECTROMAGNETIC EFFECTS IN HIGH-CURRENT PARTICLE ACCELERATORS: I. INTERACTION OF A PARTICLE BEAM WITH AN EXTERNALLY DRIVEN RADIO-FREQUENCY CAVITY