Abnormal tau induces cognitive impairment through two different mechanisms: synaptic dysfunction and neuronal loss