Factors associated with the onset and remission of chronic daily headache in a population-based study