The L78 series is a linear regulator, it's meant to regulate an output from a fairly close input voltage, not do conversion as you're doing here. It's gonna get hot.

Use something switching, like an LM2575-5.0.