UBV(RI)_C photometry and spectroscopy of the young open cluster Haffner 18