Australia closes beaches in wake of shark attacks