Two-scale analysis of the Hubbard model