Germany has changed its policy on the use of foreign workers by the country's agriculture industry during the coronavirus epidemic, it has announced.