Larger dogs have better short-term memory and self-control than smaller breeds, according to new research.