The flamboyant Baroque style was a reflection of the excesses and corruption of 17th-century Rome, as a new book shows