Aberdeen found their scoring touch to build on their League Cup semi-final win to ease aside Hamilton Academical.