Cell contamination and branching processes in a random environment with immigration