The associativity rule in pathwise functional Itô calculus