Police and anti-Trump protesters have clashed in the US city of Phoenix after a campaign-style rally by the president.