The structure of the cloud of comets surrounding the Solar System and a hypothesis concerning its origin