Intel chief executive Brian Krzanich has resigned after the company discovered he had a consensual relationship with a staff member in violation of Intel's non-fraternisation policy.