The end of Australia’s long summer school holidays usually draws crowds to the beach but a spate of shark attacks in the country’s most populous state has triggered warnings to stay out of the water.