On the average distances and the geometry of Banach spaces