Computational modelling of chromosomally clustering protein domains in bacteria