Police and opposition activists clashed in Mauritania's capital on the final day of campaigning for a controversial constitutional referendum.