On the socially optimal level of advertising