Five-axis automatic welding machine