Three-colour photometry in the UBV system of 51 northern Cepheids