Sweat, eczema, lice, habit, shampoo allergy and for me, rainwater can make your head itchy.
Change your shampoo for a more 'natural' one, and stop scratching.
Whenever I get a bad cough for weeks afterwards I am constantly coughing for no reason at all, just habit.
See how it goes and speak to your doc again.