Physics of collective beam instabilities