A market town in North Yorkshire has been named the UK’s happiest place to live in 2025.