People who eat more fruits and vegetables are more likely to avoid developing chronic kidney disease, according to a study.