The Prime Minister said a review of all government department cyber-defences was underway after the Department of Work and Pensions was targeted.