The work and pensions secretary has said an investigation is looking into a "serious cyber incident" affecting his government department.