James Vince and Liam Dawson starred with the bat as Hampshire posted 274-5 on the first day of their Division Two clash with Glamorgan at Cardiff.