The capacity of single-server weakly-private information retrieval