The Royal Navy is carefully managing the transition of aging ships being replaced with modern alternatives, a defence minister has said.