Former Cardiff City manager Malky Mackay has dropped his legal claim against the club after reaching a settlement over his sacking.