Mid Sussex District Council has bought two retail units in a deal worth £5m to generate income for the local authority.