Ground state for scalar field equations with anisotropic nonlocal nonlinearities