The Turkish president has criticised the country's main opposition party, claiming demonstrations against the jailing of his main political rival turned into "a movement of violence".