Chocolate may improve cognitive function within hours: study