Sri Lanka regained the Asia Cup trophy with a comfortable five-wicket victory over defending champions Pakistan.