added: If you understand English the simple answer is, OF is used when "which" is not used as a question. Otherwise you can tell by the context or content of the sentence if it implies a question such as, where were you? Otherwise it suggests a comment which is "relative" to the previous comment. Here, OF adds style, formality, poetic or professorial quality to English in both written or spoken form.
Which is better, to start a question with which, the pronoun to start an interrogative question with multiple choices or to make a statement of which might offer a statement. {of reason or proof or opinion, for example}
Both of *which* are two examples of different meanings.
Here, there is no confusion, as to which is which, or am I wrong?
Can you see the difference in structure and where "of" is necessary to distinguish easily a question from a statement or relevance or relative to a noun, now being an adjective?
So, in short use "of which", when it is not a question, to reduce ambiguity.