Cyclone Alfred has formed off the Queensland coast and is intensifying.