French police have made more than 2000 arrests across the country as protests against rising living costs turned into riots, the interior minister says.