Strain-level diversity drives alternative community types in millimetre-scale granular biofilms