Shark attacks are most likely to happen around when the deadly predators are giving birth, according to new research.