Ultraviolet photometry of OB associations in M31