The selection of altruistic behaviour