Celebrities and sports personalities should not be allowed to advertise unhealthy food, a leading medical journal has said.