The gunman who killed 50 people at a nightclub in Florida in the deadliest mass shooting in US history was emotionally and mentally disturbed with a violent temper, his ex-wife says.