Positivity bounds for scalar field theories