Three-body treatment of Coulomb effects in the problem of long-range effective interactions