Sleeping with your dog or cat may offer benefits, but it also destroys your rest: this is what science says