Climate warming weakens local adaptation