The Peter Principle in people management and how to avoid its effects

There is a rule in people management called the Peter Principle. It is a generally applicable principle that affects almost all larger organisations, even if they are often unaware of it. What is the Peter Principle, how does it manifest itself, what are its negative effects and how can these best be reduced?