The baryonic spectrum in a constituent quark model including a three-body force