Selectivity and promiscuity in the interaction network mediated by protein recognition modules