Southeast Asia’s manufacturing sector snapped a three-month slowdown in May, as a surge in domestic demand helped offset a downturn in exports.