Optimal vaccination strategies and rational behaviour in seasonal epidemics