The European Parliament has shut down its public Wi-Fi network in Strasbourg after a hacker was found to have “captured the communication” between smartphones and tablets.