Thai police fire tear gas and rubber bullets as clashes break out with protesters trying to prevent political parties registering for elections.