Fasting diets not a 'magical' solution for weight loss, study finds