People with thyroid problems at greater risk of anxiety