Brazil were controversially eliminated from the Copa America after suffering a 1-0 Group B defeat to Peru in Foxborough.