Cameron abandons Afghan base visit over attack plot