Vitamin D supplements could spare more than three million people from colds or flu in the UK each year, researchers claim.