Purification of total flavonoids from diaphragma of Juglans regia by macroporous resin