Raging wildfires trap 4,000 at Australian town’s waterfront