Beaches closed amid fears of a shark attack near Perth