Cooperative breeding favours maternal investment in size over number of eggs in spiders