Obesity linked to pancreatitis, study finds