Prince Harry "wanted to tell his brother to get lost" in an argument over the military, a new royal book says.