A model of cuprate superconductors based on the analogy with atomic nuclei