Prominent activity of the blazar OJ 287 in 2005: XMM-Newton and multiwavelength observations