Guppies bred for larger brains also had smaller guts and produced fewer offspring. Sophie Bushwick reports