St Mirren have signed former Hibernian striker Ross Caldwell on a one-year contract with the option of a further year.