Electrostatic instabilities driven by ion beams