Hi, and welcome to UK Fungi.
These are one of the Scleroderma “Earthball” species.
They are mycorrhizal, which means that they will be growing in association with particular trees/shrubs. – In this case possibly with the Chestnut Tree.
(In this sort of fungal relationship, the tree benefits from the fungus, and the fungus benefits from the tree).
Scleroderma species are considered inedible, and there is some suggestion that they are poisonous if eaten.
However, it would be very unlikely, due to their appearance & hard outer peridium, that a child or dogs/cats would attempt to eat them.
As for touching them, rest assured that touching or handling any fungus found in the UK, (even such things as Deathcap Mushrooms) will not cause harm.
Obviously, it would be a good idea to teach young children to wash their hands before eating after playing in a garden and touching/handling the plants/fungi & whatever else might be found there.
Regards,
Mike.