A 74-year-old woman has been left injured after being hit by a car in a North Yorkshire town.