Climate change costing Welsh farmers 'tens of millions'