Phase transition to color-flavor-locked matter and condensation of Goldstone bosons in neutron star matter