Australia says arrests foiled terrorist attack