A continuum model for hierarchical fibril assembly