Social environment modulates investment in sex trait versus lifespan: red deer produce bigger antlers when facing more rivalry