A yellow warning for rain has been issued for most of Wales, replacing first-ever amber heat warning.