People of different generations are equally lonely: Study