Yes, It is legal in UK.
When you do it door to door, make sure you DO NOT put your paper in that house which clearly denies to accept any advertising material or free papers.
There so many companies as well who do this for business i.e. dor2dor.co.uk