A total of 30,330 new homes were built in 2024, a drop of 6.7% compared to the previous year, new statistics show.