Email-запись: A collective mechanism for phase variation in biofilms