Statistical model for the abundance of deuterated ammonia in interstellar space