A function that splits a CSV file into multiple CSV files by columns