A pet &#039;could be key to tackling loneliness&#039;