I would use 1×6 boards for the back. You will use fewer boards that way. Use either shiplap or tongue and grove for joinery. Put a couple cut nails through the back, into each shelf. It will take the shelves stronger. A nice way to hide the seam between boards is a small side bead, it will look a lot nicer.