Bus shelters are being replaced in Fareham and Gosport as part of a £3 million project in Hampshire funded by government.