Failure to engage local communities is costing investors big money, according to a new analysis