Vestigial nematic order and superconductivity in the doped topological insulator CuxBi2Se3