Influence of Collisions on the Instability of Cold and Warm Electron Beams in a Plasma