A destructive cyclone is set to weaken after crossing Australia's coast and moving inland but heavy rain could continue to lash the northwest for days.