A search for X-ray flashes with XMM-Newton