The Department for Environment, Food and Rural Affairs (Defra) has signed a £400m, seven-year outsourcing deal with IBM to modernise its systems and processes.