Correlated Hofstadter spectrum and flavour phase diagram in magic-angle twisted bilayer graphene