Breed function and behaviour correlate with endocranial volume in domestic dogs