Ultraviolet rays help prevent the spread of chickenpox, meaning people in milder climates are more at risk of catching the disease, according to new research.