France's interior minister has resigned amid an investigation into the parliamentary jobs he gave his daughters.