Search for doubly-heavy dibaryons in a quark model