Friendships between people from different generations are surprisingly common. Lydia Spencer-Elliott explores why hanging out with someone much older or younger than you can banish loneliness, challenge your perceptions of ageing and even help you live longer