What are we weighting for? A mechanistic model for probability weighting