An operation to raise the level of farmland in south Wales as part of an agricultural improvement scheme has been blocked after an inspector found that it harmed the character of an area of coastal countryside.