A new study explores how firms can configure advertising investments to respond to shareholder complaints and limit the damage of these public battles.