By long pressing the building, you can move it to any position. If the bottom of the building turns green when it's moved, there is enough space to place it. If the bottom of the building turns red, there is not enough space to place it, and objects in the area need to be cleared.
Some buildings can only be unlocked after you complete certain tasks. Keep going, and you'll be able to move them too!