Interaction of light hadrons in a constituent quark model