Sharks have the ability to learn from each other’s behaviour, US scientists find.