A Scottish farmer is giving his entire crop of blueberries to charity after cheap imports and high labour costs made harvesting the fruit economically unviable.