Twisted bilayer graphene. VI. An exact diagonalization study at nonzero integer filling