We knew this already

People going through puberty are stupider.

So says a Scientific American article (Podcast, actually). A protein appears in the hippocampus during puberty that interferes, at the cellular level, with learning.

I couldn’t directly find out if this protein or it’s effect goes away after puberty, but the article does mention a hormone that improves memory.