Pterosaurs were able to fly thanks to large sail-like “vanes” at the ends of their tails, palaeontologists have discovered.