Stable Phase Retrieval in Infinite Dimensions