1/N expansion ofO(N) symmetric theories in terms of static ultralocal solutions