Collecting beach pebbles: fun hobby but is it legal?

The UK coastline will be inundated with keen holidaymakers this summer, many of whom will take a memento of their trip home in the shape of a pebble or two — but is it legal?