The damage is caused by the fungus stigmma carpophila., and prevention is easier than cure.
It tends to affect weak sickly trees, so ensure you feed and watering as necessary.
An occasional foliar feed will also help.
Spray affected trees with a bacterial canker control at leaf fall.