Weak coupling theory of the Hubbard model in high dimensions