Typhoon Soulik soaks Taiwan, hits mainland