Ekpyrotic collapse with multiple fields