Members of a migrant caravan got into scuffles with Mexican police as they tried to cross the border from Guatemala into Mexico.