A diet rich in calcium and vitamin D may lower the risk of developing premenstrual syndrome (PMS), according to a study.