Man in his 40s detained in West Sussex after attack crippled IT systems used for check-in causing delays for thousands of passengers