In the late 1990s , nuclear power plants contributed around 25 % of total annual electricity generation in the UK , but this has gradually declined as old plants have been shut down and ageing - related problems affect plant availability .