Regulation of dendritic spine morphology and synaptic function by scaffolding proteins