Assortative mating can help adaptation of flowering time to a changing climate: insights from a polygenic model