Chimps have mental skills to cook: study