Statistical properties of brown dwarf companions: implications for different formation mechanisms