Model for dark matter in spiral galaxies