A higher order beam model for thin-walled structures with in-plane rigid cross-sections