Click on the square representing the building that you want to move (actually, in case of overlapping buildings, you have to click on that building's shade) and a small menu will pop up. Click "Move", then move the building to a new position, and then click again to leave the building there.