The social origins of obesity within and across generations