Systematic study on the impact of water on the performance and stability of perovskite solar cells