The major way to avoid this is through training and the use of empirical data.
What managers need to do is to constantly be focused on the bottom line. They have to be sure that the actions that they take will increase the profitability of their firm. A very important way to make sure of this is to train the managers to have this as their main priority. It is also important to give them the tools that they need in order to properly understand when to create teams and when not to do so. They need to have data on the efficiency of teams as opposed to individual work on various types of projects. If managers have such data and are taught to use it properly, they can avoid creating teams in situations where teams are not the most efficient way to get things done.