Anisotropy in cubic UO2 caused by electron-lattice interactions