Record temperatures could affect the safety of steel tracks which expand in the heat, Network Rail says.