Differential symmetry breaking operators: I. General theory and F-method