The majority of people in Hampshire support the use of health data to improve the NHS, according to new research.