Former President Donald Trump is safe following an apparent assassination attempt at his Florida golf course, and a "potential suspect" is in custody, US authorities have confirmed.