Australian states hit by heavy rain, flooding