The diagonal of the associahedra