Sharing a home with a pet appeared to act as a buffer against psychological stress during lockdown, a new survey shows.