Homes have flooded in parts of Wales and rail services have been disrupted as heavy rain moves across the UK. An amber weather warning is in force from 21:00 GMT on Tuesday until 12:00 on Wednesday.

Bridgend County Borough Council said on Tuesday afternoon that water had entered properties in Garth and Llangeinor. Cars were also stranded on a flooded road in Peterston-super-Ely near Cardiff after the River Ely burst its banks.

The Met Office warned that heavy, persistent rain could cause “disruption and some flooding”. Fast-flowing or deep flood water was likely and could pose a danger to life, it said, advising people in affected areas to prepare a flood kit.

The forecaster also warned of transport delays and cancellations, difficult driving conditions, road closures and power cuts. Strong south-westerly winds accompanying the rain could become gale force at times.

Transport for Wales said flooding at Llanharan had blocked the railway between Cardiff Central and Bridgend, disrupting services until 20:00 on Tuesday. Damage was also reported between Pontypridd and Treherbert, with services cancelled until the end of the day. Trains between Llandudno Junction and Blaenau Ffestiniog were cancelled in both directions because of the forecast.

The amber warning covers Blaenau Gwent, Bridgend, Caerphilly, Cardiff, Carmarthenshire, Merthyr Tydfil, Monmouthshire, Neath Port Talbot, Newport, Powys, Rhondda Cynon Taf, Swansea and Torfaen. It follows Met Office yellow warnings: one until 06:00 on Wednesday for Ceredigion, Conwy, Gwynedd and Powys, and another until 12:00 on Wednesday for south east, south west and mid Wales.

Natural Resources Wales (NRW) has issued flood alerts and said flood warnings were in place. It urged people to remain vigilant and prepare for possible flooding.

Charlotte Morgan said: “We may have had a long dry summer, but conditions are set to deteriorate rapidly and we are expecting some significant rainfall in the coming days.

“We want to make sure everyone is alert to this risk and well prepared.

“Our teams are monitoring forecasts closely, and are out at key locations to check floodgates and defences are in good working order. We are also liaising with local authorities and other professional partners to ensure communities are as best prepared as possible.”

Rhondda Cynon Taf council leader Ann Crimmings said the council was advising properties and businesses with flood defences to check their equipment and be ready to deploy it if needed. Extra crews would work throughout to respond to flood-related problems, including clearing drains and checking culverts, she added.

Rhigos Mountain Road was closed from 22:45 on Monday because of debris and water on the highway, the council said. It remained closed on Tuesday, with crews on site trying to reopen it.

The Met Office advises people to avoid road travel in potentially dangerous conditions. If a journey is essential, motorists should be alert to risks and drive cautiously.

A flood kit should include insurance and other important documents, a torch and spare batteries, a first aid kit, prescription medicines and everyday medical supplies for family members or pets, as well as warm, waterproof clothes, blankets, food and water. People are also advised to check on vulnerable neighbours, including older people, those with underlying conditions and people who live alone. Anyone concerned about their own health or someone else’s should call NHS 111.

People should keep up to date with the forecast for their area and follow advice from emergency services and local authorities.