WH Smith says post offices to stay if sale goes ahead