Hofstadter butterfly and the quantum Hall effect in twisted double bilayer graphene