Consensus model of biofilm structure