Photometric investigation of the Herbig Ae/Be star MWC 297. I. Quasisimultaneous UBVRIJHK observations