Local authorities and councils will have the right to fine dog walkers up to £500 from the end of the sixth month of the year.