Cobnut trees are hardy and grow well on a wide range of soils except those that are waterlogged, but like all plants they grow best in soil conditions that suit them.
They prefer a good friable topsoil overlying a free draining substrate. A soil that is too fertile will tend to produce trees with excessive vigour, which will not crop well. However, it is still possible to grow reasonably sized and cropping trees on stony ground as long as there is sufficient soil and good drainage.
A neutral to alkaline soil is ideal, but cobnuts also grow well in more acid soils.
Cobnuts are largely self sterile - the pollen from a given variety cannot pollinate the same variety. If you live in the countryside where there are plenty of wild hazels nearby, then these will probably pollinate your trees.