Glasgow and Newcastle are the worst places in the UK for failed or illegal headlights, according to a study from Halfords.