Nucleon-nucleon interaction in the quark cluster model