Powers in finite groups and a criterion for solubility