Association between migraine, lifestyle and socioeconomic factors: a population-based cross-sectional study