Train services between Havant and Portsmouth Harbour are expected to be disrupted until midday with a safety inspection of the track underway.