The home secretary has rejected criticism the prime minister's language on migration was divisive.